= f.hidden_field :setting_id, :value => setting.to_param

- axes.each do |axis|
  %label= axis.name
  - if setting_override.has_axis?(axis)
    - axis_value_usage = setting_override.axis_value_usage_for(axis)
    %select{ :name => "setting_override[existing_axis_value_usages][#{axis_value_usage.to_param}][axis_value_id]" }
      %option
      - axis.axis_values.each do |v|
        - selected = axis_value_usage.uses_value?(v) ? { :selected => 'selected' } : {}
        %option{ selected, :value => v.id }= v.name
  - else
    %select{ :name => 'setting_override[new_axis_value_usages][][axis_value_id]' }
      %option
      - axis.axis_values.each do |v|
        %option{ :value => v.id }= v.name

%label Overridden value
= f.text_field :value, :class => 'text'
